package com.group.medical.param;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import javax.validation.constraints.Min;

@Data
@Schema(description = "分页对象")
public class PageParam {
    @Schema(description = "当前页码",requiredMode = Schema.RequiredMode.REQUIRED)
    @Min(value = 1, message = "页码必须大于等于1")
    private Integer pageNum;

    @Schema(description = "每页数量",requiredMode = Schema.RequiredMode.REQUIRED)
    @Min(value = 20, message = "页码必须大于等于20")
    private Integer pageSize;
}
